package com.tjetc.service;

import com.tjetc.domain.Medicine;
import com.tjetc.utils.PageInfo;

import java.util.List;

public interface MedicineService {
    int getCount(String name);
    List<Medicine> list(String name, PageInfo<Medicine> pageInfo);

    boolean add(Medicine medicine, List<String> photopaths);

    boolean update(Medicine medicine, List<String> photopaths, String paths);

    boolean del(int id);

    List<Medicine> listAll();

    Medicine getById(int id);

    Medicine findByName(String name);
}
